# Create your views here.
from django.template import Template, Context, RequestContext
from django.shortcuts import render_to_response
from django.contrib.auth.models import User
#from osmp.user.models import 
from django.http import Http404, HttpResponseRedirect, HttpResponse


#from mysite.contact.forms import ContactForm
def test(request):
    data = request.GET.get('key')
    value = request.session.get('key', False)
    if value:
        request.session['key'] = data 
        return HttpResponse("change " + str(value) + " to " + str(data))
    else:
        request.session['key'] = data 
        return HttpResponse("nothing,set it" + str(data))
